package scauCmiScaffolding.compiled;

import org.eclipse.jet.JET2Context;
import org.eclipse.jet.JET2Template;
import org.eclipse.jet.JET2Writer;
import org.eclipse.jet.taglib.RuntimeTagElement;
import org.eclipse.jet.taglib.TagInfo;

public class _jet_newEntity_2 implements JET2Template {
    private static final String _jetns_c = "org.eclipse.jet.controlTags"; //$NON-NLS-1$
    private static final String _jetns_java = "org.eclipse.jet.javaTags"; //$NON-NLS-1$

    public _jet_newEntity_2() {
        super();
    }

    private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
    
    private static final TagInfo _td_java_format_1_1 = new TagInfo("java:format", //$NON-NLS-1$
            1, 1,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_2_23 = new TagInfo("c:get", //$NON-NLS-1$
            2, 23,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_3_25 = new TagInfo("c:get", //$NON-NLS-1$
            3, 25,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_5_3 = new TagInfo("c:get", //$NON-NLS-1$
            5, 3,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_5_54 = new TagInfo("c:get", //$NON-NLS-1$
            5, 54,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_5_111 = new TagInfo("c:get", //$NON-NLS-1$
            5, 111,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_7_18 = new TagInfo("c:get", //$NON-NLS-1$
            7, 18,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_7_71 = new TagInfo("c:get", //$NON-NLS-1$
            7, 71,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_9_13 = new TagInfo("c:get", //$NON-NLS-1$
            9, 13,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_10_21 = new TagInfo("c:get", //$NON-NLS-1$
            10, 21,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_10_83 = new TagInfo("c:get", //$NON-NLS-1$
            10, 83,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_10_153 = new TagInfo("c:get", //$NON-NLS-1$
            10, 153,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_14_20 = new TagInfo("c:get", //$NON-NLS-1$
            14, 20,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lower-case($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_14_71 = new TagInfo("c:get", //$NON-NLS-1$
            14, 71,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );

    public void generate(final JET2Context context, final JET2Writer __out) {
        JET2Writer out = __out;
        RuntimeTagElement _jettag_java_format_1_1 = context.getTagFactory().createRuntimeTag(_jetns_java, "format", "java:format", _td_java_format_1_1); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_java_format_1_1.setRuntimeParent(null);
        _jettag_java_format_1_1.setTagInfo(_td_java_format_1_1);
        _jettag_java_format_1_1.doStart(context, out);
        JET2Writer _jettag_java_format_1_1_saved_out = out;
        while (_jettag_java_format_1_1.okToProcessBody()) {
            out = out.newNestedContentWriter();
            out.write(NL);         
            out.write("\t@RequestMapping(\"/new");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_2_23 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_2_23); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_2_23.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_2_23.setTagInfo(_td_c_get_2_23);
            _jettag_c_get_2_23.doStart(context, out);
            _jettag_c_get_2_23.doEnd();
            out.write("\")");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\tpublic ModelAndView new");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_3_25 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_25); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_3_25.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_3_25.setTagInfo(_td_c_get_3_25);
            _jettag_c_get_3_25.doStart(context, out);
            _jettag_c_get_3_25.doEnd();
            out.write("() {");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\tModelAndView mav = new ModelAndView();");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_5_3 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_5_3); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_5_3.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_5_3.setTagInfo(_td_c_get_5_3);
            _jettag_c_get_5_3.doStart(context, out);
            _jettag_c_get_5_3.doEnd();
            out.write(" ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_5_54 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_5_54); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_5_54.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_5_54.setTagInfo(_td_c_get_5_54);
            _jettag_c_get_5_54.doStart(context, out);
            _jettag_c_get_5_54.doEnd();
            out.write(" = new ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_5_111 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_5_111); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_5_111.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_5_111.setTagInfo(_td_c_get_5_111);
            _jettag_c_get_5_111.doStart(context, out);
            _jettag_c_get_5_111.doEnd();
            out.write("();");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\tmav.addObject(\"");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_7_18 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_7_18); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_7_18.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_7_18.setTagInfo(_td_c_get_7_18);
            _jettag_c_get_7_18.doStart(context, out);
            _jettag_c_get_7_18.doEnd();
            out.write("\", ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_7_71 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_7_71); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_7_71.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_7_71.setTagInfo(_td_c_get_7_71);
            _jettag_c_get_7_71.doStart(context, out);
            _jettag_c_get_7_71.doEnd();
            out.write(");");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t//\t\t把所有的引用");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_9_13 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_9_13); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_9_13.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_9_13.setTagInfo(_td_c_get_9_13);
            _jettag_c_get_9_13.doStart(context, out);
            _jettag_c_get_9_13.doEnd();
            out.write("对象都添加到mav对象，供前台页面选择");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\tmav.addAllObjects(");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_10_21 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_10_21); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_10_21.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_10_21.setTagInfo(_td_c_get_10_21);
            _jettag_c_get_10_21.doStart(context, out);
            _jettag_c_get_10_21.doEnd();
            out.write("Service.load");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_10_83 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_10_83); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_10_83.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_10_83.setTagInfo(_td_c_get_10_83);
            _jettag_c_get_10_83.doStart(context, out);
            _jettag_c_get_10_83.doEnd();
            out.write("ObjectReferencedSet(");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_10_153 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_10_153); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_10_153.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_10_153.setTagInfo(_td_c_get_10_153);
            _jettag_c_get_10_153.doStart(context, out);
            _jettag_c_get_10_153.doEnd();
            out.write("));");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\tmav.addObject(\"newFlag\", true);");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\tmav.setViewName(\"");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_14_20 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_14_20); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_14_20.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_14_20.setTagInfo(_td_c_get_14_20);
            _jettag_c_get_14_20.doStart(context, out);
            _jettag_c_get_14_20.doEnd();
            out.write("/edit");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_14_71 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_14_71); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_14_71.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_14_71.setTagInfo(_td_c_get_14_71);
            _jettag_c_get_14_71.doStart(context, out);
            _jettag_c_get_14_71.doEnd();
            out.write(".jsp\");");  //$NON-NLS-1$        
            out.write(NL);         
            out.write(NL);         
            out.write("\t\treturn mav;");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t}");  //$NON-NLS-1$        
            out.write(NL);         
            _jettag_java_format_1_1.handleBodyContent(out);
        }
        out = _jettag_java_format_1_1_saved_out;
        _jettag_java_format_1_1.doEnd();
    }
}
